package com.fowo.api.service.handleWork;

import com.fowo.api.model.loan.advance.payment.LoanAdvancePaymentBatchFinishRequestPayoutAction;
import com.fowo.api.model.loan.advance.payment.LoanAdvancePaymentFinishRequestPayoutAction;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class LoanAdvancePaymentBatchFinishRequestPayout implements LoanAdvancePaymentBatchFinishRequestPayoutAction {

    @Resource
    private LoanAdvancePaymentFinishRequestPayoutAction loanAdvancePaymentFinishRequestPayoutAction;

    @Override
    public void run(List<Long> idList) throws Exception {
        for(Long id : idList){
            loanAdvancePaymentFinishRequestPayoutAction.run(id);
        }

    }
}
